return relevant terms based on selected