adding return value of pairs