fixed graph mistakes