Merchandising evar. eVar is being set on the pageLoad. Merchandising evar

 
 eVar is being set on the pageLoadMerchandising evar  It's true that they are not very useful, but there are still some cases where I - 272485Hmmm, that's quite unfortunate :-(

When a purchase even occurs we generate an external Order ID, the quantity and product purchased, and the revenue of that item. products value is set in the call along with the binding event) I used eVar set to "somethingelse" for this test The issue is that either the proper eVar isn't being declared (and the entire "someName =item1" is being passed, or "someName" is the name of the eVar and was being used instead of the eVar id (i. Merchandising variables can follow one of two syntaxes: Product Syntax: Associates the eVar value to a product. you could even drop the "Conversion Variable Syntax" (as in not make this a Merchandising eVar) Since the Order ID applies to the entire order, and it's being set on the purchase event, it doesn't really need to be. - 574185Hi , Good Morning I followed the steps that you mentioned above, Configured eVar5 with Product syntax. @Vam27 - You're on the right track with merchandising eVars, but I would suggest the product syntax over event binding. If you are using Merchandising, you should not need to pass a non-value when they move away and keep in mind that the internal campaign will only get a value if it drives them to a product (and s. The following are the most typical uses for Merchandising eVars that we observe among our. The following happens when a merchandising eVar’s Allocation (i. )Hi Michael, In the events report do the events show as zero, or only when added to the eVar report? Per the documentation here: "Processing rules cannot read eVar values from the product list. I have a question about merchandising evar. Events. For example, for extracting the number of Product A where quantity is equal to 250 you may create the first hit container and add the "product evar equals Produ. After the second save, it stays as. Merchandising variables can follow one of two syntaxes: Product Syntax: Associates the eVar value to a product. It appears that only search terms which were followed / resulted in binding events are being recorded. 3. This value remains tied to that product, even if one or more new values are later set for that p. Doc. If you use “Product Syntax”, you should not see any instances for the eVar at all. The following are the most typical uses for Merchandising eVars that we observe among our. See full list on experienceleague. By setting a flag in the Merchandising eVar and two new success events, we can isolate the specific product that was attributed to the persistent cart and see a count of Orders and Revenue resulting from cart persistence. Previously, Yuval was an Executive Vice President at Home Dynamix. Then you need to enable it. AimeeB: I attended a DMP session (DMP 201:. rating and # of reviews in a product syntax merchandising eVar when visitors view the product detail page. Merchandising eVars let you assign the current value of an eVar to a product at the time a success event takes place. hi @vitalin58777 what metric are you loking at? pageViews, visits? and do you set the value in each hit, page view or just once per visit? I - 272485and a prop or eVar (Hit expiry) for the "search form used" (I could also do this in the custom link, with a standard prefix to be able to pull out all searches easier) 2. Represents a tab. When the user changes two or more lines at a time with the same plan(product). . the might understand the idea of prop/evar with this example: page A / prop26: 200 / evar41: 200. i want to implement a merchandising evar (evar100) and i would like to know what kind of separator can i use to separate different value in the same evar. eVars. The evar is enabled. Admin. Common uses cases for processing rules. In this blog I’m gonna cover the merchadizing eVar. category;product identifier;quantity;price;merchandising events;merchandising eVars . It depends on the business requirement and the KPI of the report. if yes, without the rest of the contextual merchandising data the value could be ignored. Merchandising variables. Select the desired report suite, then go to Edit Settings > General > Processing Rules. . Meet our community of customer advocates. . Dear jaronb96343475, If you would have used 'Product Syntax' to set the Merchandising eVar, then you can breakdown the variable only with Product and Product Category, not with any other eVar. Only normal evars can be uploaded via data sources. A deep dive into the concepts behind merchandising eVars and how they process and allocate data. - 574185Jen is correct in that anytime you are firing a merchandising event with a product, is MUST be fired WITHIN the product string. Best regards. Merchandising eVar are assign to a customer and to a specific product id of this. then you can should be able to use a calculated metric using IF statements on the bucket value (if price tier = $600-$699, value if true units, value if false (nested if for the next. This incorrect parsing throws off the rest of the product string, causing incorrect data in dimensions and reports. products string allows you to associate an eVar with the products. Harry, thank for your input. Merchandising eVars let you assign the current value of an eVar to a product at the time a success event takes place. . All subsequent success events that involve this product are credited to "Canary". The data below, first dimension is link Name, then breakdown with prop, then eVar. is your eVar configure in the Admin area to be a Merchandising eVar. page B / prop26: -- / evar41: --page C / prop26: 404 / evar41: 404 Expiration for an eVar can take place when either a success event is recorded or a certain period of time passes. It can be standalone too, e. products string. I'm uploading date, transactionID, 1 new evar, 3 new events. Otherwise I have never seen it being used. Either way, I can't still see anything besides "Unspecified" on the eVar, even though I can see it thro. A touchpoint for a conversion syntax merchandising eVar in Attribution IQ is whenever the eVar is bound. This scenario typically means that your page has no context of the merchandising channel or finding met. You can use it in the Hit level container to make your segment. Expiration: 'Purchase'. Brian, thank you I wish merchandising evars could me manipulated via processing rules. A deep dive into the concepts behind merchandising eVars and how they process and allocate data. I have a few that I can use to play - 574185Note: this scenario can apply to any analytics tool with custom variables but in this post I’ll be referring to an eVar in Adobe Analytics as the variable of choice. Indeed, it should be something really simple. Syntax: 'Conversion Variable Syntax'. But I am seeing an issue with this eVar5. i will use an other kind of separator maybe "+" to combine my data on this merchandising evar. On a sidenote: when you populate an eVar with the full eVar syntax, it is case-sensitive, and the "V" is capitalized. products value) h. See example below. Expiration: 'Purchase'. ; The evar column determines the hits when eVar1 was explicitly set. . give the name of the eVar "merch". Uses a pattern to divide the string. An eVar can be visit-based and function similarly to cookies. Merchandising Binding Event (eVar only) If Merchandising is set to Conversion Variable Syntax, the selected events bind the current eVar value with a product. but as written before, youre settings for the evar indicate that you are using a "merchandising evar" which is a very special case of an evar. In the All Pages. Courses Tutorials Certification Events Tutorials Certification EventsI can't believe it's almost been a year, but this request has come up again so I'd love to get it resolved. Binding events are "prodView" and "scAdd". The "Merchandising Binding Event" drop-down will show the binding event selection; on clicking through it, you will see that "All" has been. products string. Page View and Occurrence metrics are counted (but not the Instance of. Merchandising Binding Event (eVar only) If Merchandising is set to Conversion Variable Syntax, the selected events bind the current eVar value with a product. Merchandising eVar lookup; Special characters; Late arriving hits; Data feed FAQ; Data feed best practices; Troubleshoot Data feeds; Data Warehouse. mpHi guys, Basically we use a merchandising eVar to capture product type on some product interactions. Consider the following example where I include all three shipping options (ship to home, ship to store, pick-up in store) in a single purchase/transaction. Learn. Subscribe to Blogs Enter your name (optional) and email address and click "Subscribe" to follow all Analytics Demystified blogs via email. In the past I have discussed Product Merchandising, which is a way in Adobe Analytics to associate an eVar value with a specific Products Variable value. varchar(100) purchaseid: Unique identifier for a purchase, as set using the purchaseID variable. Set the Extension drop-down list to Adobe Analytics, and the Action Type to Set Variables. I understand that there are different variables to handle them differently. You can use VISTA rules to exclude hits. products is defined. In Data Feeds, the post_product_list column may contain the merchandising eVar instances. The "Merchandising Binding Event" drop-down will show the binding event selection; on clicking through it, you will see that "All" has been selected. To use a Binding Event, set Allocation to Most Recent. I'm attempting a Freeform Table in Workspace but my Product Position eVar is always Unspecified. basically, a prop is a variable set on a single hit and only valid for the single hit. Find the Merchandising eVar instance for each lookup value in the post_product_list column in a data feed. I was simply using pseudo eVars as placeholders. eVar82 when using it in products syntax. Each eVar is represented by a number. Hi. Clean up values in a report. it is a boon for a retail implementer where he has an option to track any activity on his. . Page 2, eVar is not set, but the value is still "value 1" due to visit level attribution. Definition of EVAR in the Definitions. Adobe Analytics allows for only one Expiration setting at a time, per eVar. I need to capture the merchandising evar, - 190101A custom dimension that you can use in reporting. I'd like to e. I am not sure how to set up processing rules to handle the incrementor events and the merchandising evar. It’s a quick way to enable a drill down to understand the % of products on our site which we consider to be “out of stock” and how this is affecting performance. I have a question about merchandising evar. The query below returns a merchandising eVar and event for the first product found in the productListItems array. After I've saved, it changes to Conversion Variable Syntax. You can select the events that act as binding events. Each key will be an ID instead of the full name to limit the char usage. Thank you! - 608679Merchandising eVar lookup; Special characters; Late arriving hits; Data feed FAQ; Data feed best practices; Troubleshoot Data feeds; Data Warehouse. Suppose you search for shoes and add a Reebok shoe to the cart, and then you also search for jacket and add a Reebok jacket to the cart. Issue is if a customer purchase. This help page describes how merchandising eVars work as a dimension. I didn't enable Merchandising before. Note: If Products Syntax is selected, the Merchandising Binding Event section is disabled and not selectable for edit. The merchandising eVars are quite complex to set because you have different way to implement them. Should I keep "Expire After: Hit" or "Expire After: Visit"? I'm asking, because this Report Suite has other va. . The evar is the last in visit. If a product name includes a comma, AppMeasurement parses it as the start of a new product. With those 2 fixes, I hope I can have data in eVar82. No one said that the event must be passed in the s. products string (and s. Hi , Good Morning Thanks. if yes, without the rest of the contextual merchandising data the value could be ignored. Courses Tutorials Certification Events Instructor-led training View all learning options. I also have a Product ID eVar associated with the same event. The AA Product String Extension takes care of all of the formatting. I don't have a reliable promo code evar, so need to go another route please. Starting Simple – a Stock Status merchandising eVar. So, kindly help me with the logic. Experience League. I am not sure if I use merchandising eVar though?Adds merchandising eVars to the products variable. However, Conversion Syntax Merchandising eVars are a bit different in that this allocation is set at the product level when the Merchandising eVar value is “bound” to the product at the. products isn't available in processing rules). . What things you suggest to insert in my dashboard. For the Product Finding Method, the best practice for setting a merchandising eVar’s expiration should be setting it equal to. Which is a bad solution to my problem. Use standard SQL to query data within the data lake in Experience Platform. you could even drop the "Conversion Variable Syntax" (as in not make this a Merchandising eVar) Since the Order ID applies to the entire order, and it's being set on the purchase event, it doesn't really need to be specifically stitched to the Products tracking. Track "Search Result Pages" Tracking page views is obviously standard, but I have some items that I add when the page is a search result. Furthermore, you can see more than 100% of a conversion event attributed to "None" if a user purchases multiple. 1,2,3 etc. Our product string contains several incrementor events and a single merchandising eVar. As noted for custom events, multiple merchandising eVars may also be set here. The query below returns a merchandising eVar and event for the first product found in the productListItems array. 2K. However, this isn't true. "eVar5")The eVar is set as the data element: But on Analytics, the App ID variable is "Unspecified": Any ideas? Thanks! Solved! Go to Solution. For merchandising variables using product syntax, instances are not incremented at all. In order to save eVars, I sometimes concatenate these two values with a separator and then use RegEx and the SAINT Classification RuleBuilder to. page B / prop26: -- / evar41: --page C / prop26: 404 / evar41: 404Yes. explode () Function. products. Is there an. Used by the duplicate_purchase column. Merchandising eVars would be the only way to explicitly connect "value a" to "product a" / "value b" to "product b", etc. Merchandising variables. The query below returns a merchandising eVar and event for the first product found in the productListItems array. For this syntax, Binding Events are not applicable. products get to be so long (mostly because they want the page title included in he merchandising eVar). If it would be normal evar than it would have a single value in a single server call and any event against it would not be getting deduplicated. . . The eVar is conversion syntax merch, so I'm setting it on the page right before the product page together with a dummy s. Well, i'm testing the workaround with an additional - 190101Merchandising (eVar only) Merchandising variables can follow one of two syntaxes: Products Syntax: Associates the eVar value to a product. Experience League. the might understand the idea of prop/evar with this example: page A / prop26: 200 / evar41: 200. Of these it. This method uses a regular eVar but you configure it as a product syntax merchandising eVar (configuration done within the Adobe Analytics Admin interface). These values even could come from searches for products, which were not later added to the basket. Evar. If you use “Conversion Variable Syntax”, you should only see instances for cases, where all three (eVar, binding event and s. Hi Irina, Processing rules cannot alter any part of the product string. 00 and your competitors’ price is. Learn how to provide XDM fields and sample queries to access the merchandising variables in your Analytics datasets. Hi Alxis, thank you for your answer. g. Custom variables that tie to the products dimension. the onsite search term, is not available at the same time you set s. For example:So I think I figured out how to get around the issue, but it's not intuitive. Make sure when you configure the eVar within the Adobe Analytics interface, to enable it as a merchandising eVar, and set it as Product Syntax. Set the merchandising eVar on the same call as Event 1, then doing a second call where Event 2 is called (but also passing s. Set the product view event from the product overview page. As a third-generation scion of a prestigious jewelry-making family, renowned for serving royalty since 1933, Amish carries a rich heritage within the industry. Value 2 = Module Location. 1,2,3 etc. I am only guessing based on the name). Learn how to provide XDM fields and sample queries to access the merchandising variables in your Analytics datasets. (product syntax specifically since the. Is there an. Now my question is. For example, if a visitor adds product # 111 to the cart and its price is $100, the syntax would look like this: In this case, the $100 cart value is being passed to both the. rating and # of reviews in a product syntax merchandising eVar when visitors view the product detail page. Merchandising variables. . it is a boon for a retail implementer where he has an option to track any activity on his. Doesn’t match string based on the regular expression. ; The post_evar1 carries. and while you can set events with processing rules (you cannot extract. products value is set in the call along with the binding event) I used eVar set to "somethingelse" for this test But to answer our new question, you will want to augment that by passing the dollar amount to a Product Syntax Merchandising eVar when visitors add a product to the cart. Use product_list instead. . Log in to Adobe Analytics and go to Admin > Report Suites. Harry, do you remember if your Merchandising evar used Product Syntax or Conversion variable syntax? I've got Client Care confirmation that - 190101The following use cases focus on returning a merchandising eVar from the productListItems array using SQL. Processing rules help simplify interaction with IT groups and Web developers by providing an interface to: Set an event on the product overview page. You can have multiple eVars in your product string, so you need to clearly show where each one is mapped, for example: The value "Aviary" for eVar1 is assigned to the product "Canary". Can you see the settings of your eVar configuration? Here is some info about Merchandising eVars: default (with ""Binding Events") when a merchandising evar is enabled, "All" Binding Events is selected even if the checkbox is not checked. So, can I exclude the same through segment, I tried different approaches through segment but not worked. Learn about using Data Feeds to export of raw data, and Data Warehouse to retrieve a spreadsheet output of data. Lookup Value Merchandising Instance; 101: eVar1: 102: eVar2:. ) Click Action (from Page 2), eVar is not set, but again, visit level attribution comes into play. Right now, the Merchandising eVar is failing because Adobe really doesn't know where to put it. If Allocation is set to Original Value, the first eVar product binding remains until the eVar expires. Back in 2010, I wrote about a way to see how much money website visitors were adding to the shopping cart so that amount could be compared to the amountHi , Is this a Merchandising eVar? The “instances” metric works differently on Merchandising eVars. This help page describes how merchandising eVars work as a dimension. It has been implement using conversion variable syntax. Hi vitalin58577727 I try to answer your question in short, even if it's not possible to fully answer the question - there are too many special cases. Adobe Experience League | Community | CommunityIf the variable is used in s. customDimensions. s. We don't need price or quantity at this stage, and let's just ignore category for the moment . Matches the string based on a regular expression. In the past I have discussed Product Merchandising, which is a way in Adobe Analytics to associate an eVar value with a specific Products Variable value. Yes, you can use merchandising eVar for this. . Hi , We are not using events in our code. Hello, If I register an event event1=fizzbuzz on a click, and later on a different click,event1=buzzfizz will I get metrics for each value passed in the event? Is that how the text string option works? Thanks. eVar is being set on the pageLoad. Last update: 2023-09-21. Hi k61152442 , By default (with ""Binding Events") when a merchandising evar is enabled, "All" Binding Events is selected even if the checkbox is not checked. We have oth. Is your eVar set up as a Merchandising eVar? If set up in Product Syntax, it cannot be set in Processing Rules since the eVar must be passed as part of the s. Once Merchandising has been enabled, we need to go to the Admin Console and select the Product Syntax option under the new Merchandising setting that will now be visible. Solved: Hi everyone, Could you please help me debug the following issue with using merchandising and context vars in the processing rule? - 190101 It is set up as a Merchandising Evar. on the other hand the evar keeps the - 272485Are you sure you are looking at the correct "App ID". Attend local and virtual eventsThe best solution is to use an eVar as you can set up to 250char, we will put a concatenated value of key=value pairs delimited by a pipe "|". products, then it's an eVar (more specifically, a Merchandising eVar, as mentioned). Documentation. Experience LeagueDear Jeff, That should not be the case. I need to capture the merchandising evar, - 190101Hi Harry, Thanks for your reply. If you want to associate a product with metadata like a category, color, size, etc. products value on the call with Event 2 The eVar is bound to event 2 (only when the s. Merchandising Variables allow you to attribute sales more fairly to the behaviour, piece of content or site feature that contributed to them. based on your smaple code ( ";12345;1;10. Hi. Merchandising Binding Event (eVar only) If Merchandising is set to Conversion Variable Syntax, the selected events bind the current eVar value with a product. Consider ours is a big retail portal. . The Mer eVar is using the Product Syntax. I can't really set the concatenated value of evar63 and the current date into s. Admin. . Choose this option if your merchandising value, e. Then in your code, populate it within the s. . Our product string contains several incrementor events and a single merchandising eVar. Locate the eVars section. Learn. Hi Harry, Thanks for your reply. The tip is ingenious (Audrey’s Analytics Rockstar slides) — prepend the current date to your Page Name value and throw it into an evar and/or prop. Created for: User. category;product identifier;quantity;price;merchandising events;merchandising eVars . I'll take another example, in our company the products come in several quantities so we have Quantity as a merchan. Locate the eVars section. If customers clicks on a different. But the data is still missing, although the merchandising eVar is also configured and its data is fine. products = ";prd1;1;9. I can see several issues I had: 1. . In short: You can neglect props, you only need them if you need a pathing report. Learn about Analytics administration tasks, such managing users and products in the Experience Cloud Admin Console, configuring report suites, and. For this syntax, Binding Events are not applicable. eVar (Merchandising) Last update: 2023-09-21. Merchandising eVars that do not fire at or before a conversion event: Similar to events firing without eVars, it is possible to see None in a Merchandising eVar report when that variable is not defined before a success event. His journey commenced in 1992 when he. - 452301Quick links. Topics: Dimensions. you could even drop the "Conversion Variable Syntax" (as in not make this a Merchandising eVar) Since the Order ID applies to the entire order, and it's being set on the purchase event, it doesn't really need to be specifically stitched to the Products tracking. That report should tell us which internal search term was used to finally purchase a product. 00;; someName =item1,;34566;1;15. It’s a quick way to enable a drill down to understand the % of products on our site which we consider to be “out of stock” and how this is affecting performance. Note: If Products Syntax is selected, the Merchandising Binding Event section is disabled and not selectable for edit. Then in your code, populate it within the s. These fields are included in the Adobe Analytics ExperienceEvent Template. Did the new variable (URL) inherit the events allocated to the merchandising evar? I'm using: Hence, with the addition of one merchandising eVar, you can see click-through rates by placement, product & placement, placement & product, row, column and page. . Learn. Read real-world use cases of Experience Cloud products written by your peersThanks, Jennifer, We have a pretty standard implementation. eVar82. This value remains tied to that product, even if one or more new values are. The Custom Insight Conversion Variable (or eVar) is placed in the Adobe code on selected web pages of your site. . without that, any information sent to price or quantity - 608679Oh, you will also probably need to make sure that the order id / transaction id is also properly set. Once you have set the eVar, each product viewed will have a its own Pricing State value and Adobe Analytics will wait and see which products are purchased. HI Harry, Using Data Warehouse is possible, but quite challenging for a regular business user. You can select the events that act as binding events. The format being: [category (optional)];[product name];[quantity (optional)];[Price (optional)],[events (optional)];[merchandising eVars (optional. Also, you MUST increment your event numerically each time within the event string as well, so your product string would look something like this: (, double-check my synta. Example: s. More execution time. 0. Learn about using Data Feeds to export of raw. Adobe recommends using this plug-in if you want to easily add product syntax merchandising. to explain, my evar100 will contain 2 different values for the same product (evar100 = x,y) what separator can i use to separate those. just google for this evar type. Please find the reference image below:. You would want to configure an event for your "product list view" custom event (event1), and also set up an eVar as a merchandising eVar with. Can you give me an example? Let's take userA to the pageA UserA -> PageA>PageB>PageC-PageD Prop26 - ->PageA(200)->PageB(200)->Pa. . It is difficult to diagnose the issues with the known details. Read real-world use cases of Experience Cloud products written by your peersHi Tanmay, Sure, the evar is in the list, but as I explained in the first comment if I place the evar in a hit container I have no way to associate the evar to the exact product I want. Essentially, here is the Products String as sent: ";12345;1;10. In the past I have discussed Product Merchandising, which is a way in SiteCatalyst to associate an eVar value with a specific Products Variable value. I'm not sure if i know how to implement your suggestion. but as written before, youre settings for the evar indicate that you are using a "merchandising evar" which is a very special case of an evar. Is there a way to either concatenate the merchandising evar to the current date context variable (preserving all the event allocations to this evar) and upload the classification based on. Create a Data Warehouse request; General settings; Build your report; Report. As you are using merchandising evar and it is getting fired multiple time within a single server call, any event will work like the example I gave because that event fired only once in a server call. Unfortunately, I do not always fully understand that. They key is the inclusion inside the product string and then setting the eVars as merchandising variables. Values passed into eVar variables follow the user for a predetermined period of time. products=";sampleproduct"Great! I'm glad its working now - 608679Without seeing your implementation this could be hard to diagnose. This help page describes how merchandising eVars work as a dimension. Admin. It also explains how merchandising eVars relate to product finding methods. . The following use cases focus on returning a merchandising eVar from the productListItems array using SQL. Name. In addition to sending data into Adobe Analytics using this eVar logic we would also make use of the rules-based SAINT classification system to split the data from eVar into contributory parts. If a product name includes a comma, AppMeasurement parses it as the start of a new product. . page B / prop26: -- / evar41: --page C / prop26: 404 / evar41: 404 Yes. I expect after the upload to break down the new evar and events by existing evars and also existing merchandising evars. Uses a string separator to divide the string. Recently, however, I had a client ask a similar. Email : info@evarcollections. Those can actually be added right into the product notation. then you can should be able to use a calculated metric using IF statements on the bucket value (if price tier = $600-$699, value if true units, value if false (nested if for the next. Your two options are Product Syntax &. I have adobe analytics sandbox but not launch. Have a nice day. _experience. For 1 out of 3 tests a break down by exisiting evar didnt work The break down. Track "Search Result Pages" Tracking page views is obviously standard, but I have some items that I add when the page is a search result. I appreciate for your time thank you. Without merchandising evars, both Jacket and Shoe would be credited with the internal search of shoe. net dictionary. If you have not already done so, you should read the Analytics insights for web and mobile interactions documentation next. I'm glad that helped Funny what a little setting can do. The Custom Insight Conversion Variable (or eVar) is placed in the Adobe code on selected web pages of your site. but as written before, youre settings for the evar indicate that you are using a "merchandising evar" which is a very special case of an evar. Last Update. 2. evar82 is not the same as s. Hi , as always thank your for your helpful responses. You can capture these filters in evar, but set the evar has a merchandising evar. Commerce Events. products = “Category; SKU;;;event85=1;evar63=’id_1’" ON the same s. . . The Merchandising Evar has a value; We've been instructed by Adobe to use an incrementing dummy product value (prodmerch#) in the product string, along with an event (event48 'Merchandising Instances), to capture instances against any Merchandising Evar. . This incorrect parsing throws off the rest of the product string, causing incorrect data in dimensions and reports. . ; The pagename column populates the Pages dimension. it is a boon for a retail implementer where he has an option to track any activity on his. This incorrect parsing throws off the rest of the product string, causing incorrect data in dimensions and reports. Please find the reference image below:. - 452301Hi everyone, Could you please help me debug the following issue with using merchandising and context vars in the processing rule? We are passing one conversion variable (evar63) as a merchandising var in the s. 00;;eVar5=Item2") I created - 608679Jean-Paul, I think you have some issues in your logic here.