add switch for nbterms