update make-leaf-set