merge and delete