survival logic