change way to retrieve top level terms