modified analysis code