set type to events
event creation problems