added to_rec conversion