added clearContent() function