first implementation for visualizations 2