remove unneeded files and fix a bug