make sure intermediate results are stored