removing statements from triggers, replaced with planFragments. WARNING: this is broken, it will not compile right now