update search routine (nedded later)