removed useless segments, added correctet stack pointer