pkgver function added