added filter condition when search term