replaced np.prod with helpers.prod