added isOK test