reducing complexity on page_file tag