more fussing with the rotation function