cleanArchive functions is working now