improved repeatplaysequence performance and removed unnesesary LoC