added oscar rotation code