removed term_code from smq