addded frame rate controler