move velocity into it's own module