new velocity calculation