some changes to for search main