code from google dev added to enhance search functions