add a version method