remove redundant modules