correction in search, working fine now