put purge window into env