need to develop way to output result for parallel case