to help with writing reward terms in the webapp, let's track the metric values before and after that step.