added text writing feature