making sure we pick the latest encounter