modify graph