supplement graph function