refactor create_event and get_event to use hash merge method instead of clone