merge sub-table