updating code to fix bug with text format