table finally works