add redo keyword to for loop