modified diagram