changed some graph stuff