starting on velocity dispersion code