moved qaa thresholds and definition of blue wavelength to context