finished analysis script