add cycle and set framerate to 20