check version method.