loop too far for diff vector
cv function added
phasing out this function