stack segment problems solved