implemented the rotation operations based on local frame manipulation.