output data in a table