minor change to checkIsOK