set buff size to macro BUFF_SIZE