preparation for merge