Update RotateHelperFunction