fix lifetime issue