added check for version to be a number