using hash instead of search string