update

Less reallocations,
if renaming is possible do it first,