extracted the quality enum