had to switch order of table to make it work