improve RecordModel class read function