adding the e-field generator