added some analysis code. just to make a pretty picture