refactor for multiple products in url param