modified the passing record to only keep the data that is needed