Rotate functioning correctly