removed rotate code