updated RepeatAction.java