patterns in repeat