analysis code updates