customized scratch buffer