process both left and right appropriately