diagram modified. dangeshild test added