removing the previous files and replacing them with new ones