creates diagram section