file is now properly replaced