add code for ZXing library