added feature analysis code