conversion to lcr codes