polarization gating added (needs to be checked)