a little change so that it runs faster
search() upgraded,using new methods