diagram modification