added method createContents