got the terms to correctly return for ids