add search_and_get_hash method