updated with tree table, not yet functioning