added the updaged SGL and lagr