implemented frame speed control