remove and replace files