commiting new functions to buildtreedicts