added max number of instances, which can be created