change in graph function