add macro DISABLE_WEIGHT