changed buf format