changed code to format to textarea