improve record reader