changed to calc dipole and use it as ranking crit.