fix lifetime problem with lifetime annotations