refactoring filez