change the BUFF_SIZE macro to static const member