changes NUMBER_OF_INSTANCES to NUMBER_OF_INSTANCES_PER