optimizing quality/qunatity update