changed the order the tables update