sbn - adding search for leaf nodes