reorg the mdy daily code flow, mdy range need to be done