add extern CHAT in Constant.h