replace isOk to isSuccess