fussing with the rotation function