changed velocity to capacity