adding some functionality for visualizing and handling data