hutning for segmentation fault