updating so that adding items to the tables works