add an analysis logic