updated graph input