record the leaf value