implemented electron charge consistency