changing levels to a table