fix in downsampling after testing