optimize queries
separator search method