using arrayobject for event register