added max_term_finder