update trigger

support new data struct