updated graph stuff