remove spurious counter from search_n, fix comments