main with results