builds recursive structures, bugs in adding, no tracking of structure depth