abstraction for file itterations
readability