make value None for non-leaf nodes