model now uses the entire corpus and not just leaf models