fix for proper term_id from terms array
rename function