simplify end of sglist processing slightly