check version before update