fix framerate and random variables