add cross-section macro