replaceVersion() method added