start using vector in place of NumericVector