add instance num check