adding some changes to search