debugging .. still segmentation fault