changed to write to binary