added loop in createTANTterms