improve definition of zipPairs()