correction to onRepeat