Factors influencing cost and quality