removing redundant modules