added trigger, updated more samples