fixed a variable scope problem, for start_time