optimized printAnalysis()