changed search method , still has weird effect.