corrected sed command to not overwrite