started working on to_datatable