update binary file