makefile updated for segmentation fault