retrieving the record