added contracts to events