initializing event creation