changed buf name to cbuf