reads the table