downsampling distance choice; improved uniform downsampling; ui