changed but to buf