working ouptu to table!