slightly faster ``_product`` with trivial change