removed sum_v > 0 conditions - rely on input data being formated