cleanup for merge operators