begin to calculate stats, its more complicated than I thought