looping and position manipulation