moved increment & print under summarize