code runs, time_step() seg faults