update viewer to generate velocity