implement quantity limits