ímplemented another huge performance boost (when smoothing)