calculate the confidence level, implement argument parser