update for dynamic graphing