capturing value at the right moments