check charge density in MT and report an error