version2 for trigger