changed makeFile() to patch(), a more intuitive name