unreversed the loop