get products functionality