divide and main