removing referencies to unused modules