add set speed in main loop #21