added certainty_index method