fixed statistics calculations