updating graph spec