updated graph layout