get version number as separate function.