made capture variable global in main