added use of confidence