add statistics code.