modified default behavior of scratch buffer.