renamed VV and TCV functions, checking for divide by zero in TCV