adding diagram