changes to def k te stat generation