adding trigger api method