added simple univariate case