A ton of print statements! why is there a segfault