split main.