finish merge intervals