update analysis script