determining frame rate