updated code to match wikipedia search