refactor array name in term.rb