add new file after modifaction and remove old files