updated object rotation in main