working on death logic