update grounding output, delete old grounding code