server stat function updated