fixing file format issues