removed segmentation fault