solved lifetime error