tried to fix rotation bug