added get confidence method