edited stats.cpp