done trigger(). changed hooks array structure