analysis script updated