making the frameRate a variable