correct NUM_QUANTITIES