finished lpc snippet