begin diagram