optimize the upsampling filter