added plot_lifetime