minor optimasation of dipole