add macro(then-end)