add inv to datatable from agg id
removed echo