added function in nprint to summarize the status