cleanup macro definition