getting table to work