try finding out why segmentation fault