search function update..