update mass IIFE