merge and save