replaced diagram