updates to velocity code