build the file