finish the rename operation