fixed the dictionary portion for sending events through constructor