add frameRate code snip