changes made fixed the segmentation fault of c code