printing results out to files