created create_directory_function