fixed downsampling