remove previous file after rename