changed evaluating confidence vote to write to file