removed unnecessary variable for rotation