finished adding in agent death code