adding divide and conquer