remove window scope of infinity