made tree conform to nodes and fixing add