doc macros