search method improved