fixing the buildParams function and adding ProductService