introducing filesize, refactoring