fixed so it segfaults now