Change num2term to index2term