Updated modify that breaks textfile