optimizing lifetime