fixing rotation functions for ios sdk8