rotations loop added