updated velocity method