oops, silly variable capture