added has_term method