adding functions to prep data for visualization