change return type of search