changed alive if statements to unless