modified notepad code