implement decoding using log-scale