added check for version