changed velocity function names