passing search parameters finally working