sort out the version number