remove unused code for searching name/content