building the serach