added quality matrix