fixed to add data to table