merge sub