modify avl graph