about to transfer over yarik's rotation stuff