refactor files