implemented term based evaluation