search and update both