refactor processReaders