refactored range funcs to return Files