cleanup the trigger method to reuse define_trigger_method