fixed graph stuff