new constants, calculate velocity