definition for branch and leaf
fringe function