refactor main file loop: loop in DeadCodeFinder