merge codes