add code to save a part of the results