changed graph stuff