fixed access record funtion