work on changing file format from binary to char