updating the list to what's shown on the graph