replace 256 with BUFF_SIZE