diagram works