dfe visualization code