updated create_event method