results are written out. Design improvements