add search and update