rename files and delete unused files