added final dump and diagram