outputting intermediate results