added logic for date certainty attribute