add statistics and broken tree