changing framerate and threshold