added writetext