search Function update