method for consolidating two sets