fixed units in dipole moment calculation