With respect to costs of quality, this type of cost arises when a defect is discovered in the factory and is fixed before it reaches the consumer.