change $content to $contents