with record_transform