final diagram