splitting main