moved logic to methods creating the content from mixed input.