formatted results into table