resolve_version function

resolve_version