fixed the stack option with x-section and lumi functions
fixed the stack part