refactor file To fileMac