A novel method for spatial smoothing