adds events to mask