window scope on extern