writes to two separate files, one for each replacement method