slightly changed search for recursive hash list