organize analysis code1