fixed typo, added pareto printing