added sg_lmax
added sg_lmax