merge main process