added alive function
added alive function