created basic triggerfactory create loop