add readrecord proc