updating rotation script