add new analysis code