put pointer into indexed reader as inner class