set a speed limit and moved allocation for the triggers to the stack