updated the trigger