add param for custom variable to trigger function