updates to analyze script