writing a clean generic trigger
symplified sampler code, removed events, since they are all moved to trigger
the previous advance trigger code will not be used