bugs in spatial smoothing