another possibility is to put all qualities we want to try in an array (`var qualities = [0.75, 0.50, 0.25]`) and check if the array index < qualities.length before using it.