refactor string interpolation
Refactor trigger script