improve trigger example