modify search method