logging the terms adding to results