lp's code