converted score and threshold to float for comparaison