added lpc code