removed NumInstances dependency