replace is finished