added setbuff