finished typewrite()