function for formated content