fixing calculating statistics
basic stats