updating and removing old files