made better fetch function for product model