added a function to do the product limiting work