refactoring create_event method
completed