parsing hash for stats