update the function for dd product search