new file for rotation functions