upgrading: rotation-function