fixed stats calculation