replace productDetail with getProductDetail