add current version func