refine define macros
refine chacha