replacing both files