fixed second argument in GetDataFromRec