global merge of code