correction segmentention fault phase2