update interface
refactor array name in term.rb
search for a term