fixed a lifetime problem