merging into binary file