reduce application main