rotate add into a loop