added check if this.version exists