both diagram work