do not understand the segfault from earlier