updating analysis code