correcting velocity