remove unneeded modules