cleanup statistics code
dgw restore prototipe