working on gathering data for graphs