#14.3
bug removal when X was a data.frame in density_estimation