tried refactoring so recordreader would split the file into pages and titles