some unused code for rotation