starting a rotate function