updating and removing unneeded files