move default refresh rate into variable