analysis code updatedy