added death check