implement quick union.