tweak ScratchBuffer()