reformat scannercodes