quality score optimisation