added time counter and alive counter