prototype for search and object values