added triggers, hopefully they work