allow histogram to write to files