added p_maxVelocity