update to IIFE