fix measure_and_score