updated trigger class for future serialization