refactored Quantity property access