removed total_time variable