changing the structure of tables