working on segfault from join