restrict quantity in measure