started deathEvent

also fixed minor code formating