added in nonparametric estimation as an option