based on trigger specification