repeat statement works now