merger code