added computation of V