add the text report function