factory for transformations and triggers