method for visualization