took out replicate univariate function