changed to output if sum_v > 0 as opposed to num_v > 0 since v can be zero and num can be 1