analysis script