simplify confidence calculation