max sum confidence working