added term frequencies by level