Some changes the create rotation function