file creation for index