changed the table ordering