merge base code