minor chnanges to analyze