added graph diagram