new function to compute final state at extinction