remove unneeded files and lines