functions to get products and values from tag