repeat statement works