add min and max speed.