moved trigger creation into facts