properly implemented flappy rotation