implemented getter for textcontent