rename function for getting nested relation terms