do the same thing to statsData, only allocated when needed instead of on every pe.