found a way around the gcc lambda bug