changed getproducts function name