modify analyis code