added particle cloud resampling