generalize the infomration retrival function for each record type