fix loop to repeat 5 times