removed ect_ind from search and other small but significant change