I am still stuck in a replacement loop of 2 files