replace old file with updates with a new one