working on velocity code