incapsulate row_type