compute all interesting stats