added provision to incorporate upc in api