save analysis code