made some edits to method, is_alive