removed global _window