implemented correct rotation