triggerfactory object creation working