change func name; add maxspeed