fixed the getProductList function