lf code modified