change to the repeat functionality, for when no-repeat is set