completed isAlive functionality