global in wrong place