started adding code for roystons multivariate normalization