log intermediate results better