add fixes & specs for ensuring the confidence value is a float value