small changes, still getting segfault