modify not to output source when target == 0