improved quantity method on collection