improved buf value