add diagram in doc