better analysis and output