fix code for pads of length and remove copy()
change expression
change calcVelocity object to calcVelocity class