update incremental grounding algorithm