get the table correctly/be less dumb