use this instead of window at root level