fixed new version function