change ds (downsampling) from 0.5 to 2