avoid unititialized value error when peak_memory is unset