adding replaceInFile