trigger is deprecated.