merge and append