max speed implemented