merge contracts