densityResample is a little more robust