further improvement of the qrdecoder