     event_builder.type = 'coffee_state_machine.EventHelperFunction'
 
 
-    # transition helper function
-    #
+    # ========================================
+    # TRANSITION helper function
+    # ========================================
+
     append_common_state_trans_options = (trans_def, ifCallback, unlessCallback, doAction) ->
         trans_def.if = ifCallback if typeof ifCallback is 'function'
         trans_def.unless = unlessCallback if typeof unlessCallback is 'function'

        call_state_hooks nextState, "enter" if (oldState is false or nextState isnt oldState) and parents.old.indexOf(nextState) is -1


    # event helper function
    #
    current_event = null

    check_transition_callbacks = (trans) ->

                options.only,
                options.if,
                options.unless,
                (hook or options.action))

    transition_builder.type = 'coffee_state_machine.TransitionHelperFunction'


    # ========================================
    # initialize
    # ========================================

    # call given function within context of state object
    fn.call obj, state_builder, event_builder, transition_builder
