upgrade repository