update to trigger function