modified buf