simplify collection of pairs