analysis code update