update trigger for ac, not finished yet