add version method