change triggerAction to query