creates main