change velocity.m