delete statistics code