add =0 to virtual method logStats()