plane lam generation part is revised.