added code for text